Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve eos in encoding when max_seq_length = -1 #1694

Merged
merged 5 commits into from
Aug 26, 2024

Conversation

sanderland
Copy link
Contributor

Resolves the EOT issue in #1682

@rasbt
Copy link
Collaborator

rasbt commented Aug 23, 2024

Thanks for the PR!

@awaelchli Since you have implemented the data utils and have much more experience with those than I do, would you mind taking a quick look if time permits?

@awaelchli
Copy link
Contributor

It's fine to handle this edge case. Next step is to add a test here to complete the PR: https://github.com/Lightning-AI/litgpt/blob/main/tests/data/test_base.py

@sanderland
Copy link
Contributor Author

sanderland commented Aug 24, 2024

It's fine to handle this edge case. Next step is to add a test here to complete the PR: https://github.com/Lightning-AI/litgpt/blob/main/tests/data/test_base.py

Thanks for having a look, have added tests.
If this is a rare edge case, I'd appreciate some insight into what went wrong to trigger it by copying my first example.

Copy link
Collaborator

@rasbt rasbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for adding the tests to the PR.

@rasbt rasbt merged commit f655f01 into Lightning-AI:main Aug 26, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants